package com.aco.party.common.job;
//package com.icss.background.common.job;
//
//import org.slf4j.Logger;
//import org.springframework.stereotype.Service;
//
//import com.icss.background.common.log.LoggerManager;
//import com.icss.background.common.util.BeanLocator;
//
///**
// * <P>Title: SchedulerJobFactory</P>
// * <P>Description: 后台任务工厂类，生成具体的业务工厂</P>
// * <P>Copyright: Copyright (c) 2013 </P>
// * <P>Company: icss </P>
// * 
// * @author tangruihua
// * @version 1.0
// * @create 2012-2-2
// * @history
// */
//@Service
//public class SchedulerJobFactory {
//	private static final Logger logger = LoggerManager.getLogger(SchedulerJobFactory.class);
//	private static SchedulerJobFactory schedulerJobobFactory;
//
//	/**
//	 * 生成本类的一个单例
//	 * 
//	 * @return 实例本身
//	 */
//	public static synchronized SchedulerJobFactory getInstance() {
//		if (schedulerJobobFactory == null) {
//			schedulerJobobFactory = new SchedulerJobFactory();
//		}
//		return schedulerJobobFactory;
//	}
//
//	/**
//	 * 生成具体的后台任务工厂 此方法必须由serviceName来具体找到相应的bean
//	 * 
//	 * @param scheduleName
//	 * @return
//	 * @throws ClassNotFoundException
//	 */
//	public SchedulerJob getSchedule(String scheduleName) {
//		SchedulerJob bean = (SchedulerJob) BeanLocator.getInstance().getBean(scheduleName);
//		logger.debug("====后台ScheduleServiceFactory取到bean成功========" + bean);
//		return bean;
//	}
//}
